package com.yanqu.road.logic.bussiness.message;


import com.yanqu.road.dao.impl.message.MessageNoticeDaoImpl;
import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.entity.messageSubscribe.entity.*;

import java.util.Map;


public class MessageSubscribeBussiness {

    public static Map<String, ChannelTemplateInfo> getChannelTemplateMap(int channelId) {
        return DaoHelper.getMessageSubscribeDaoImpl().getChannelTemplateMap(channelId);
    }

    public static Map<Long, MessageSubscribePlayerData> getMessageSubscribeMap() {
        return DaoHelper.getMessageSubscribeDaoImpl().getMessageSubscribeMap();
    }

    public static boolean addMessageSubscribe(MessageSubscribePlayerData data) {
        return DaoHelper.getMessageSubscribeDaoImpl().add(data);
    }

    public static boolean updateMessageSubscribe(MessageSubscribePlayerData data) {
        return DaoHelper.getMessageSubscribeDaoImpl().update(data);
    }

    public static MessageUserNoticeData getMessageUserNotice(long userId) {
        return DaoHelper.getMessageNoticeDaoImpl().getMessageUserNotice(userId);
    }

    public static Map<Long, MessageUserNoticeData> getMessageUserNoticeMap(long time) {
        return DaoHelper.getMessageNoticeDaoImpl().getMessageUserNoticeMap(time);
    }

    public static boolean addMessageUserNotice(MessageUserNoticeData data) {
        return DaoHelper.getMessageNoticeDaoImpl().add(data);
    }

    public static boolean updateMessageUserNotice(MessageUserNoticeData data) {
        return DaoHelper.getMessageNoticeDaoImpl().update(data);
    }
}
